package com.fjec.common.exception;

import com.fjec.common.enums.EnumSysCode;
import org.apache.shiro.authc.AuthenticationException;

public class LoginException extends AuthenticationException {

    private String code;

    public LoginException(EnumSysCode code) {
        super(code.getMsg());
        this.code = code.getCode();
    }

    public String getCode() {
        return code;
    }
}
